package com.yanyan.sannuomin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yanyan.sannuomin.dao.UserMapper;
import com.yanyan.sannuomin.domain.*;
import com.yanyan.sannuomin.service.SccService;

import com.yanyan.sannuomin.vo8081.PRS;
import com.yanyan.sannuomin.vo8081.SDV;
import com.yanyan.sannuomin.vo8081.tj;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.Resource;
import java.util.List;


@Service
public class SccServiceImpl extends ServiceImpl<UserMapper, SccPatient> implements SccService {
    @Resource
    private UserMapper userMapper;

    /**
     * 分页查询检测者和药店的实现类
     * @param sdv
     * @return
     */
    @Override
    public List<SDV> findSDV(SDV sdv) {
        return userMapper.findSDV(sdv);
    }

    /**
     * 添加检测者的实现类
     * @param sccPatient
     * @return
     */
    @Override
    public int yhInsert(SccPatient sccPatient) {
        return userMapper.yhInsert(sccPatient);
    }

    /**
     * 修改检测者的实现类
     * @param sccPatient
     * @return
     */
    @Override
    public int xgUpdate(SccPatient sccPatient) {
        return userMapper.xgUpdate(sccPatient);
    }

    /**
     * 比如被用户举报检测者禁止的接口
     *
     * @param sccPatient
     * @return
     */
    @Override
    public int scUpdate(SccPatient sccPatient) {
        return userMapper.scUpdate(sccPatient);
    }

    @Override
    public int sccMedInsert(SccMedicalResult sccMedicalResult) {
        return userMapper.sccMedInsert(sccMedicalResult);
    }

    @Override
    public List<SccDrugstore> FdSelect(SccDrugstore sccDrugstore) {
        return userMapper.FdSelect(sccDrugstore);
    }

    /**
     * 检测结果
     *
     * @param
     */
    @Override
    public List<PRS> sccMde(@PathVariable int patientId) {
        return userMapper.sccMde(patientId);
    }

    @Override
    public List<PRS> sccMde1() {
        return userMapper.sccMde1();
    }

}
